home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / var / lib / dpkg / info / gedit.postinst < prev    next >
Encoding:
Text File  |  2011-02-27  |  981 b   |  40 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. case "$1" in
  6.     configure)
  7.         # register gedit as a gnome-text-editor in the alternatives system
  8.         update-alternatives \
  9.             --install \
  10.                 /usr/bin/gnome-text-editor \
  11.                 gnome-text-editor \
  12.                 /usr/bin/gedit \
  13.                 50 \
  14.             --slave \
  15.                 /usr/share/man/man1/gnome-text-editor.1.gz \
  16.                 gnome-text-editor.1.gz \
  17.                 /usr/share/man/man1/gedit.1.gz
  18.     ;;
  19.  
  20.     abort-upgrade|abort-remove|abort-deconfigure)
  21.     ;;
  22.  
  23.     *)
  24.         echo "postinst called with unknown argument \`$1'" >&2
  25.         exit 0
  26.     ;;
  27. esac
  28.  
  29. # Automatically added by dh_installmenu
  30. if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
  31.     update-menus
  32. fi
  33. # End automatically added section
  34. # Automatically added by dh_pysupport
  35. if which update-python-modules >/dev/null 2>&1; then
  36.     update-python-modules  gedit.private
  37. fi
  38. # End automatically added section
  39.  
  40.